using System;
using System.Collections;
using UniFramework.Event;
using UniFramework.Singleton;
using UniFramework.Window;
using UnityEngine;
using YooAsset;

public class MainController : MonoBehaviour
{
    private void Awake()
    {
        DontDestroyOnLoad(gameObject);

        App.Init(gameObject);
        // UniSingleton.CreateSingleton<GameManager>();
        // Debug.Log("ffffffffffffffffffffffffffffffffffffffffff");
    }

    private void OnDestroy()
    {
        App.OnDestroy();
    }


    private void OnApplicationFocus(bool hasFocus)
    {
        if (hasFocus)
        {
            App.OnEnterForgeground();
        }
        else
        {
            App.OnEnterBackground();
        }
    }
}